import java.util.Arrays;
import java.util.Random;

public class Main {
    public static void notInorderArray(int[] array){
        for (int i = 0; i < array.length; i++) {
            array[i] = array.length - i;
        }
    }

    public static void intArray(int[] array){
        Random random = new Random();
        for (int i = 0; i < array.length; i++) {
            array[i] = random.nextInt(array.length);
        }
    }
    public static void main(String[] args) {
        int[] array = {3,5,2,10,8,9,19};
//        demo01.selectSort(array);
        demo01 text = new demo01();
        text.heapSort(array);
        System.out.println(Arrays.toString(array));
    }
}